<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>视频播放</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>
<body> 
    
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
apiready = function(){

var moviePlayer = api.require('moviePlayer');
moviePlayer.open({
          rect:{
          x: 0,
          y: 0,
          w:api.frameWidth,
          h:300
          },
          styles:{
          head:{
          bg: 'rgba(161,161,161,0.5)',
          height: 44,
          y:20,
          title:{
          size:20,
          color:'#fff',
          width:40,
          leftMargin:10
          },
          backSize: 30,
          backImg:'widget://image/back.png',
          customButtons:[{
          w:30,
          h:30,
          rightMagin:10,
          img:'widget://image/image/collect.png',
          imgSelected:'fs://image/collectSelected.png',
          }]},
          foot:{  
          bg: 'rgba(0,0,0,0.5)',
          height: 44,
          palyBtn:{
          size: 20,
          playImg:'widget://image/play.png',
          pauseImg:'widget://image/pause.png',
          marginLeft:5
          },
          currentTimeLabel:{
          textSize:14,
          textColor:"#FFF",
          textWidth: 43,
          marginLeft:5
          },
          seekBar:{
          sliderImg:'widget://image/circle.png',
          sliderW : 20,
          sliderH : 20,
          progressColor: '#696969',
          progressSelected: '#76EE00',
          marginLeft:10,
          marginRight:10
          },
          totalTimeLabel:{
          textSize:14,
          textColor:"#FFF",
          textWidth: 43,
          marginRight:5
          },
          fullscreenBtn:{
          size:20,
          verticalImg:'widget://image/vertical.png',
          horizontalImg:'widget://image/horizontal.png',
          }
          } },
           path:'http://192.168.72.36/test.mp4',
           autoPlay: true
            },function(ret, err){
                if(ret){
                    // alert(JSON.stringify(ret));
                // } else {
                    // alert(JSON.stringify(err));
                }

});
}


</script>
</html>